<?php

include("../dao/clubDAO.php");
include ("../db/openconnection.php");

$connectionDB = new ConnectionDB();
$linkdb = $connectionDB -> connectAndGetConnection();
$club_dao = new ClubDAO($linkdb);
echo json_encode($club_dao->getClubes());
$connectionDB -> closeConnection();

?>